﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.JControls.JColorPicker.Tracker;

namespace System.Windows.JControls.JColorPicker.Utils
{
    class JColorPickerHelper
    {
        internal static void NumericUpDownValueChanged(System.Windows.Forms.NumericUpDown ctr, decimal newValue)
        {
            if (ctr.Value != newValue)
            {
                ctr.Value = newValue;
            }
        }

        internal static void ColorTrackerValueChange(ColorTracker colorTracker, double newValue)
        {
            if (colorTracker.Value != newValue)
            {
                colorTracker.Value = newValue;
            }
        }
    }
}
